﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Security;


namespace KidsGest.Models
{
    public class ResetPasswordModel
    {
        [Required]
        [Display(Name = "Username")]
        public string Username { get; set; }

        public void ResetPassword(string username)
        {
            MembershipUser currentUser = Membership.GetUser(username);
            string password = currentUser.ResetPassword();
            SendEmail.SendResetEmail(currentUser);
        }


    }
}